package org.maitaole.entity;

public class TbCart {
    private Integer cartId;

    private Integer fkCartUserId;

    private Integer fkCartGoodId;

    private Integer cartGoodPrice;

    public TbCart() {
    }

    public TbCart(Integer cartId, Integer fkCartUserId, Integer fkCartGoodId, Integer cartGoodPrice) {
        this.cartId = cartId;
        this.fkCartUserId = fkCartUserId;
        this.fkCartGoodId = fkCartGoodId;
        this.cartGoodPrice = cartGoodPrice;
    }

    public Integer getCartId() {
        return cartId;
    }

    public void setCartId(Integer cartId) {
        this.cartId = cartId;
    }

    public Integer getFkCartUserId() {
        return fkCartUserId;
    }

    public void setFkCartUserId(Integer fkCartUserId) {
        this.fkCartUserId = fkCartUserId;
    }

    public Integer getFkCartGoodId() {
        return fkCartGoodId;
    }

    public void setFkCartGoodId(Integer fkCartGoodId) {
        this.fkCartGoodId = fkCartGoodId;
    }

    public Integer getCartGoodPrice() {
        return cartGoodPrice;
    }

    public void setCartGoodPrice(Integer cartGoodPrice) {
        this.cartGoodPrice = cartGoodPrice;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", cartId=").append(cartId);
        sb.append(", fkCartUserId=").append(fkCartUserId);
        sb.append(", fkCartGoodId=").append(fkCartGoodId);
        sb.append(", cartGoodPrice=").append(cartGoodPrice);
        sb.append("]");
        return sb.toString();
    }
}